<include file="Public:header" />
<div class="panel panel-default"> 
  <!-- Default panel contents -->
  <div class="panel-heading">书籍类型<a class="btn btn-primary btn-xs"  href="__URL__/add" style="display:block; float:right;"><i class="glyphicon glyphicon-plus"></i>添加类型</a></div>
  <table class="table table-striped table-bordered table-hover">
    <thead>
      <tr>
        <th width="100px">#</th>
        <th>类型名称</th>
        <th>关键字</th>
        <th>描述</th>
        <th>排序</th>
        <th>状态</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <foreach name="type_list" item="type" >
        <tr>
          <th scope="row">{$type._id}</th>
          <td>{$type.type_name}</td>
          <td>{$type.keywords}</td>
          <td>{$type.description}</td>
          <td>{$type.order}</td>
          <td>{$type.status}</td>
          <td><a href="__URL__/edit/?id={$type._id}">修改</a> <a href="__URL__/del/?id={$type._id}">删除</a> </td>
        </tr>
      </foreach>
    </tbody>
  </table>
</div>
<include file="Public:footer" /> 